/* should generate diagnostics */
const foo = isBar ? baz : qux;

function quux() {
	return foo ? bar() : baz();
}

